<%--
  Created by IntelliJ IDEA.
  User: zhao
  Date: 17-1-24
  Time: 上午10:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文章管理</title>
    <script type="text/javascript" src="${pageContext.request.contextPath}/resource/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/resource/easyui/jquery.easyui.min.js"></script>

    <link rel="stylesheet" href="${pageContext.request.contextPath}/resource/easyui/themes/default/easyui.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/resource/easyui/themes/icon.css">

    <script type="text/javascript" src="${pageContext.request.contextPath}/resource/js/common.js"></script>

</head>
<body>
<script type="text/javascript" src="${pageContext.request.contextPath}/resource/js/newsManager.js"></script>
<script type="text/javascript">
    $(function () {
        //init module select
        $('#module').combobox({
            url:'/module/moduleJson.do',
            valueField:'id',
            textField:'name',
            loadFilter:function (data) {
                data[data.length]={
                    id:-1,
                    name:'所有模块',
                    selected:true
                };
                return data;
            }
            ,onSelect:function (item) {
                onSelectModule = item.id;
                
            }
        });
    })
</script>
<div id="cntent" style="width: 100%">
    <table id="tb" style="width: 100%;"></table>

    <div id="toolbar">
        <a class="easyui-linkbutton" iconCls="icon-add" onclick="createNews()">发表文章</a>
        模块<select id="module" name="module.id" style="width:200px;">
        </select>
        标题<input id="queryTitle" class="easyui-textbox" onchange="" data-options="iconCls:'icon-search'" style="width:200px">
        <button onclick="advancedQuery()" class="btn btn-primary">高级搜索</button>
    </div>

</div>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</body>
</html>